import 'package:flutter/material.dart';

import 'package:flutter_demo/widgets/likeWidget.dart';
import 'package:flutter_demo/widgets/meWidget.dart';

import 'package:flutter_demo/datas/homeDatas.dart';
import 'package:flutter_demo/datas/meDatas.dart';

class MePage extends StatefulWidget {
  @override
  _CarPageState createState() => _CarPageState();
}

class _CarPageState extends State<MePage> {
  List<Widget> _groups = [
    MUnLogin(),
    MOrder(orderItems),
    MGift(),
    MServer(serverItems),
    MLike(items: likeItems), // 猜你喜欢
  ];

  @override
  Widget build(BuildContext context) {
    return new ListView.builder(
      itemBuilder: (BuildContext context, int index) => _groups[index],
      itemCount: _groups.length,
    );
  }
}
